package com.tangyuan.feignapis.user;

import com.tangyuan.common.result.Result;
import com.tangyuan.model.UserConcern;
import com.tangyuan.vo.MyInfoMissionVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-user",contextId = "userConcern")
public interface IUserConcernFeignClient {

    @GetMapping("/feignApi/user/selectUserConcernList")
    List<UserConcern> selectUserConcernList(@RequestParam(value = "userId",required = false) Long userId,
                                            @RequestParam(value = "concernUserId",required = false) Long concernUserId);

    @GetMapping("/feignApi/user/getLiveConcernNum")
    Long getLiveConcernNum(@RequestParam Long concernUserId,
                              @RequestParam Integer type,
                              @RequestParam Long concernId);

    @GetMapping("/feignApi/user/isConcern")
    Result<Boolean> isConcern(@RequestParam Long userId,
                              @RequestParam Long concernUserId);


}
